<template>
  <textarea id="mytextarea">Hello, World!</textarea><br />
  <el-button type="primary" @click="getContent">提交</el-button>
</template>

<script>
export default {
  mounted() {
    tinymce.init({
      selector: "#mytextarea",
      height: 600,
    });
  },
  methods: {
    getContent() {
      console.log(tinymce.activeEditor.getContent());
    },
  },
};
</script>
<style scoped></style>
